package com.wsc.Mediator;

/**
 *  用户类
 */
public class User {
    private String name;

    public User(String name) {
        this.name = name;
    }

    public User() {
    }

    public String getName() {
        return name;
    }

    /**
     * 发送消息的方法
     * @param msg 聊天消息
     */
    public void sendMsg(String msg){
        ChatRoom.showMessage(this, msg);
    }
}
